package com.jingtai.core.entity.shop;


import com.baomidou.mybatisplus.annotation.TableName;
import com.jingtai.core.entity.BaseEntity;
import com.jingtai.validate.swagger.CApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

import io.swagger.annotations.*;


import java.util.Date;

/**
 * 商品分类表
 * 
 * @author sunlaiqian
 * @date 2020-12-02 15:08:11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("shop_goods_category")
@ApiModel(value = "商品分类表", description = "商品分类表")
public class GoodsCategory  extends BaseEntity implements Serializable {




	/**
	 * 级别 分1，2，3级
	 */
	@CApiModelProperty(value = "级别 分1，2，3级",required = true,cNotEmpty = true,cIntMin = 1,groups = {Create.class,Update.class})
	private Integer level;

	/**
	 * 一级ID
	 */
	@CApiModelProperty(value = "一级ID",groups = {Create.class,Update.class})
	private Long oneLevelId;

	/**
	 * 二级ID
	 */
	@CApiModelProperty(value = "二级ID",groups = {Create.class,Update.class})
	private Long twoLevelId;

	/**
	 * 类别名称
	 */
	@CApiModelProperty(value = "类别名称",required = true,cNotEmpty = true,groups = {Create.class,Update.class})
	private String categoryName;

	/**
	 * 图标
	 */
	@CApiModelProperty(value = "图标",required = true,cNotEmpty = true,groups = {Create.class,Update.class})
	private String icon;

	/**
	 * 权重 最大排序越靠前
	 */
	@CApiModelProperty(value = "权重 最大排序越靠前",required = true,cNotEmpty = true,groups = {Create.class,Update.class})
	private Integer weight;

	/**
	 * 权重 最大排序越靠前
	 */
	@CApiModelProperty(value = "规格ID数组",groups = {Create.class,Update.class})
	private String specificationsId;

	/**
	 * 启用状态 0：已启用1：未启用
	 */
	@CApiModelProperty(value = "启用状态 0：已启用1：未启用" ,required = true,cNotEmpty = true,groups = {Create.class,Update.class})
	private Integer enableState;

}
